﻿//////////////////////////////////////////////////////////////////////////////
//
//  Copyright © 1998-2024 Glodon Company Limited.  All rights reserved.
//
//  Use of this software is subject to the terms of the Glodon license
//  agreement provided at the time of installation or download, or which
//  otherwise accompanies this software in either electronic or hard copy form.  
//
//////////////////////////////////////////////////////////////////////////////

#pragma once
#include "GcmpPickInterface.h"

namespace gcmp
{
    class IModelView;
    /// \brief
    //夹点管理工具
    //夹点状态需要更新的场合：
    //(1)选择集发生变化：夹点可能被删除或者生成(Selection发起消息)
    //(2)视图发生切换：夹点可能被删除或者生成(UI层发起消息)
    class GCMP_PICK_INTERFACE_EXPORT GripUtil
    {
    public:

        /// \brief 更新夹点显示
        /// \param pCurrentModelView 指向当前 ModelView 的指针
        /// \param isActivated 该视图是否为激活状态（如果为激活状态则会生成新的夹点）
        /// \return 更新成功返回true，失败返回false 
        static bool UpdateGripPoint(IModelView* pCurrentModelView, bool isActivated);
    };
}


